<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script src="../include/js/jq.js"></script>
        <link rel="stylesheet" href="<{$config.SITE_URL}>/images/admin/style.css"/>
        <script>
//            $(document).ready(function(){
//                $("tr:odd").css("background","red");
//                $("tr:first").css("background","yellow");
//                $("tr").each(function(){
//                    var parentid=this.id;
//                    
//                    $("#t"+parentid).click(function(){
//                           
//                        $.ajax({
//                            url:"<{$config.SITE_URL}>/admin/mtypes.php?action=getchilds",
//                            cache:false,
//                            
//                            dataType:"html",
//                            success:function(data){    
//                                var c="#c"+parentid;
//                                $(c).html("<td> </td><td>子分类ID</td><td>子分类名</td>");
//                                $("#t"+parentid).html('-').unbind().click(function(){
//                                    if($(this).html()=="+"){
//                                        $(this).html("-");
//                                    }else{
//                                        $(this).html("+");
//                                    }
//                                    $(c).toggle();
//                                });
//                                $(c).css("display","");
//                                
//                            }
//                        });
//                    })
//                });
//                
//            });
        </script>
        <style>
            table tr td{
                border-bottom: 1px #eeeeee solid;
            }
        </style>
    </head>
    <body>
        <div class="main">
            <table border="0" cellpadding="0" cellspacing="0" style="width:710px;">
                <tr><td width="30%">ID</td><td width="20%">分类名</td><td width="50%" style="text-align:right">操作</td></tr>
                <{section name="sb" loop=$typelist}>
                <tr>
                    <td><{$typelist[sb].id}></td>
                    <td><{$typelist[sb].n}><{$typelist[sb].name}></td>
                    <td style="text-align:right"><a href="<{$config.SITE_URL}>/admin/mtypes.php?action=edit&typeid=<{$typelist[sb].id}>">编辑</a> <a href="<{$config.SITE_URL}>/admin/mtypes.php?action=delete&typeid=<{$typelist[sb].id}>">删除</a></td>
                </tr>                
                <{/section}>
            </table>
            <div style="text-align: right;width:710px;"> <{$page}></div>
        </div>
    </body>
</html>
